﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MaestraVotante.Master" AutoEventWireup="true"
    CodeBehind="Login_Usuario.aspx.cs" Inherits="VotanetWebSite.Login_Usuario" ClientIDMode="Static" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="LoginUsuarioHead" ContentPlaceHolderID="headMaestro" runat="server">
</asp:Content>
<asp:Content ID="LoginUsuarioBody" ContentPlaceHolderID="ContentPlaceHolderMaestro"
    runat="server">
    <asp:UpdatePanel runat="server" ID="UpdateLogin" UpdateMode="Always">
        <ContentTemplate>
            <div class="bordeRedondo">
                <div class="encabezado">
                    <asp:Label ID="lblMenu" runat="server" Text="Login Usuario" CssClass="label12"></asp:Label>
                </div>
                <table>
                    <tr>
                        <td>
                            <asp:Label ID="lblRut" runat="server" Text="Rut" CssClass="label12"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtrut" runat="server" MaxLength="9"></asp:TextBox>
                            <ajaxToolkit:FilteredTextBoxExtender ID="filtroTxtRut" runat="server" TargetControlID="txtrut"
                                FilterType="Custom" ValidChars="1234567890" />
                            <asp:RequiredFieldValidator ID="RFVvalidaFormatoRut" runat="server" ControlToValidate="txtRut"
                                Display="None" ErrorMessage="No deje el Rut en blanco"></asp:RequiredFieldValidator>
                            <ajaxToolkit:ValidatorCalloutExtender ID="VCEvalidaRut" runat="server" TargetControlID="RFVvalidaFormatoRut">
                            </ajaxToolkit:ValidatorCalloutExtender>
                            <asp:RegularExpressionValidator ID="REVRut" runat="server" ControlToValidate="txtRut"
                                Display="None" ErrorMessage="Rut Invalido" ValidationExpression="^0*(\d{1,3}(\.?\d{3})*)\-?([\dkK])$"></asp:RegularExpressionValidator>
                            <ajaxToolkit:ValidatorCalloutExtender ID="VCEValidadFormatoRut" runat="server" TargetControlID="REVRut">
                            </ajaxToolkit:ValidatorCalloutExtender>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lblContrasena" runat="server" Text="Contraseña" CssClass="label12"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtContrasena" runat="server" MaxLength="15" TextMode="Password"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RFVFContrasena" runat="server" ControlToValidate="txtContrasena"
                                Display="None" ErrorMessage="No deje la Contraseña en blanco"></asp:RequiredFieldValidator>
                            <ajaxToolkit:ValidatorCalloutExtender ID="VCEContrasena" runat="server" TargetControlID="RFVFContrasena">
                            </ajaxToolkit:ValidatorCalloutExtender>
                            <ajaxToolkit:FilteredTextBoxExtender ID="filtroContrasena" runat="server" TargetControlID="txtContrasena"
                                FilterType="Custom" ValidChars="@.qwertyuiopasdfghjklñzxcvbnmQWERTYUIOPASDFGHJKLÑXCVBNM1234567890_- " />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <br />
                            <span class="label8">Ingrese el texto que aparece en la imagen</span>
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:Image ID="ImageCaptcha" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:TextBox ID="txtCaptcha" runat="server" Width="100px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvtxtCaptcha" runat="server" ControlToValidate="txtCaptcha"
                                Display="None" ErrorMessage="Ingrese codigo seguridad"></asp:RequiredFieldValidator>
                            <ajaxToolkit:ValidatorCalloutExtender ID="vcerfvtxtCaptcha" runat="server" TargetControlID="rfvtxtCaptcha">
                            </ajaxToolkit:ValidatorCalloutExtender>
                            <ajaxToolkit:FilteredTextBoxExtender ID="filtrotxtCaptcha" runat="server" TargetControlID="txtCaptcha"
                                FilterType="Custom" ValidChars="qwertyuiopasdfghjklñzxcvbnmQWERTYUIOPASDFGHJKLZÑXCVBNM1234567890" />
                            <asp:ImageButton ID="ImageCaptchaReload" runat="server" Height="24px" 
                                ImageUrl="~/Images/reload.ico" onclick="ImageCaptchaReload_Click" 
                                Width="24px" ValidationGroup="reloadCaptcha" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <br />
                            <asp:Button ID="BotonEnviar" runat="server" Text="Ingresar" OnClick="BotonEnviar_Click"
                                class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" />
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
